<?php

namespace Bean;

abstract class Link extends \Library\Bean {

	public abstract function getLinkId();
	
	public abstract function getTitle();
	
	public abstract function getDescription();
	
	public abstract function getUrl();
	
	public abstract function getSiteName();
	
	public abstract function getImage();
	
	public abstract function getUser();
	
	public function getSiteUrl() {
		$url = parse_url($this->getUrl());
		return $url['scheme'] . '://' . $url['host'];
	}
}
